package org.yate.oa.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.dao.mapper.PerformancePartMapper;
import org.yate.oa.model.PerformancePartEntity;
import org.yate.oa.service.IPerformancePartService;

@Service
public class PerformancePartService extends BaseService<PerformancePartEntity, Integer> implements IPerformancePartService {
	@Resource(name = "performancePartMapper")
	private PerformancePartMapper performancePartDao;

	@Override
	protected IBaseMapperDao<PerformancePartEntity, Integer> getMapperDao() {
		return this.performancePartDao;
	}

	@Override
	public Integer addEntity(PerformancePartEntity e) {
		return performancePartDao.addEntity(e);
	}

	@Override
	public List<PerformancePartEntity> getEntitiesBy(PerformancePartEntity e) {
		return performancePartDao.getEntitiesBy(e);
	}

	@Override
	public void removeByPerId(Integer perId) {
		performancePartDao.removeByPerId(perId);
	}

}
